/**
 *Blog
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';

class ApiBlog {

  blogList(parms){
    return ApiBase.send(Urls.URL_BLOG_LIST, parms);
  }
  saveBlog(parms){
    return ApiBase.send(Urls.URL_BLOG_SAVE, parms);
  }
  queryById(params){
    return ApiBase.send(Urls.URL_BLOG_DETAIL, params);
  }
  saveDirectory(parms){
    return ApiBase.send(Urls.URL_BLOG_SAVE_DIRECTORY, parms);
  }
  queryDirectoryById(params){
    return ApiBase.send(Urls.URL_BLOG_DETAIL_DIRECTORY, params);
  }
  queryDirectoryList(params){
    return ApiBase.send(Urls.URL_BLOG_LIST_DIRECTORY,params);
  }
  deleteDirectory(params){
    return ApiBase.send(Urls.URL_BLOG_DELETE_DIRECTORY,params);
  }
  deleteBlog(params){
    return ApiBase.send(Urls.URL_BLOG_DELETE,params);
  }
  previewBlog(url,params) {
    return ApiBase.send(url, params)
  }
  publishBlogPage(url,params) {
    return ApiBase.send(url, params)
  }
}
export  default  ApiBlog
